﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using WinFormsUI.Docking;
using InterMessage;
using ChaSQLite.Constants;

namespace ChaSQLite.SubForm
{
    public partial class HistoryViewer : DockContent, IMessageClient
    {
        public HistoryViewer()
        {
            InitializeComponent();
        }

        public void ReceiveMessage(int type, Object message)
        {
            MSG_CONSTANT nType = (MSG_CONSTANT)type;
            switch (nType)
            {
                case MSG_CONSTANT.MSG_DB_QUERY:
                    break;
            }

        }

        private void HistoryViewer_FormClosing(object sender, FormClosingEventArgs e)
        {
            //this.Hide();
        }

        private void HistoryViewer_Load(object sender, EventArgs e)
        {
            BroadCaster.GetInstance.Attach(this);

            lstHistory.Columns.Add("상태", 80);
            lstHistory.Columns.Add("시간", 120);
            lstHistory.Columns.Add("내용", 500);
        }
    }
}
